function pwd(action,url){
    var check_pass_word;
    var passwords = $('#password').get(0);
    var character,index=0;  $("input.pass").attr("disabled",true);  $("#password").attr("disabled",true);
    $('#keyboard li').click(function(){
        if ($(this).hasClass('delete')) {
            $(passwords.elements[--index%6]).val('');
            if($(passwords.elements[0]).val()==''){
                index = 0;
            }
            return false;
        }
        if ($(this).hasClass('symbol') || $(this).hasClass('tab')){
            character = $(this).text();
            $(passwords.elements[index++%6]).val(character);
            if($(passwords.elements[5]).val()!=''){
                index = 0;
            }
            if($(passwords.elements[5]).val()!='') {
                var temp_rePass_word = '';
                for (var i = 0; i < passwords.elements.length; i++) {
                    temp_rePass_word += $(passwords.elements[i]).val();
                }
                check_pass_word = temp_rePass_word;
                if(url =='withdraw2.html'){
                    withdraw2();
                }else {
                    window.location.href=url;
                }
            }
        }
        return false;
    });
}
function withdraw2(){
   //验证支付密码  ajax
    var  res='no';
    //支付密码失败
    if(res  =='no'){
        //询问框
       $('#pwdResult').show();
    }
    //支付密码成功
    if(res  =='yes'){
        layer.open({
            content:'提现申请提交成功，请耐心等待审核'
            ,skin: 'msg'
            ,time:3 //2秒后自动关闭
            ,end : function(){
                jump('/capitalcash.html');
            }
        });
    }
}
function jump(url){ window.location.href=url;}